package org.theta.framework.web.session;

import java.io.Serializable;
import java.util.Date;

public class UserSession implements Serializable {

	private static final long serialVersionUID = 6094138871871553770L;

	public static final String USER_SESSION_KEY = "userSession";

	private String id;

	private String username;

	private Date loginTime;

	private Date lastOptTime;

	private String loginIp;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Date getLastOptTime() {
		return lastOptTime;
	}

	public void setLastOptTime(Date lastOptTime) {
		this.lastOptTime = lastOptTime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

}
